<?php
/**
 * index.php     Zhuayi 测试
 *
 * @copyright    (C) 2005 - 2010  Zhuayi
 * @licenes      http://www.zhuayi.net
 * @lastmodify   2010-10-27
 * @author       zhuayi
 * @QQ			 2179942
 */

class test_action extends zhuayi
{

	/* 构造函数 */
	function __construct()
	{
		parent::__construct();
	}
	

	function index()
	{
		/* 加载app_qq */
		
		$app = $this->load_class('appqq',true);
		
		$reset = $app->request_token($this->weburl.'/test/info');
		$reset = explode('&',$reset);
		$reset = explode('=',$reset[0]);
		$url = '<a href="http://open.t.qq.com/cgi-bin/authorize?oauth_token='.$reset[1]."\">登录</a>";
		//$reset = $app->access_token('http://h.t.net/sdk/callback.php');
		//$this->test($_SERVER['HTTPS']);
		$this->test($url);
	}
	
	function info()
	{
		$this->test($_GET);
	}

}

?>